package evance.user.controllers;

import java.util.Locale;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import evance.server.common.service.ProductService;

@Controller
public class HomeController {
	private static Logger log = Logger.getLogger(HomeController.class);
	@Autowired
	private ProductService pizzaService;

	@RequestMapping(method = RequestMethod.GET)
	public void home(Locale locale, Model model) {
		log.debug("Welcome home ! the client locale is " + locale.toString() + "; " + locale.getDisplayName());
//		List<Pizza> result = pizzaService.getListPizzas();
//		System.out.println(result);
	}

}